package com.atguigu.day11.Test03;

import java.util.Scanner;

public class Player {
    public static FightAble select(String str){
        if("法力角色".equals(str)){
            return new Mage();
        }else if("武力角色".equals(str)){
            return new Warrior();
        }
        return null;
    }
}
